package com.lefull.lefullbase.utils.OkGoHelper;

import com.google.gson.GsonBuilder;

public class ResponseEntity {
    public String message;
    public Integer status;
    public String data;

    public ResponseEntity(Integer status, String message, String object) {
        this.message = message;
        this.status = status;
        this.data = object;
    }

    public <T> T praserResponseModel(Class<T> className) {
        SafeGson gson = new SafeGson(new GsonBuilder().create());
        T model = gson.fromJson(data, className);
        return model;
    }
}
